home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 00 / 5 / DISK0052.ZIP / POKEPEEK.DOC < prev    next >
Text File  |  1983-03-30  |  4KB  |  86 lines

  1.  
  2.      Did you know that ... there is a lot of information that may be accessed 
  3. from the ROM BIOS area in your IBM PC, regarding  the operating characteristics
  4. and options found on your own IBM PC?  After careful analysis of data found
  5. in the IBM Technical Reference manual a summary of the most useful information
  6. and where/how it may be referenced has been  prepared. 
  7.  
  8.      By specifying a DEF SEG=&H40 in any BASIC program, it is possible to 
  9. reference the following vectors (fields) in the ROM BIOS area by using a PEEK
  10. function and the following  offsets from the current segment as defined by the
  11.  DEF SEG  statement.
  12.  
  13.      &H0       -  RS232 Addresses on your IBM PC.
  14.                   This will allow you to tell how many (up to
  15.                   four) async cards are attached, if any.
  16.      &H8       -  Printer Addresses on your IBM PC.
  17.                   This will tell you what printer addresses,
  18.                   and how many (up to four) exist. Each is
  19.                   addressed by a two byte Hex value.
  20.      &H10      -  Equipment Flag.
  21.                   This field describes the setting of the
  22.                   options switches. It describes what optional
  23.                   devices are attached to the system. The    
  24.                   following lists the bit-significance of this
  25.      
  26.              field:
  27.                   Bit 0 - indicates that there are diskette 
  28.                           drives on the system.
  29.                   Bit 1 - not used.
  30.                   Bit 2,3 - Planar Ram Size (00=16K 10=32K 01=48K
  31.                             11=64K)
  32.                   Bit 4,5 - Initial Video Mode (00=Unused
  33.                                                 10=40x25 Color
  34.                                                 01=80x25 Color
  35.                                                 11=80x25 Mono)
  36.                   Bit 6,7 - Number of Diskette Drives (00=1 10=2
  37.                             01=3 11=4) only if bit 0 = 1.
  38.                   Bit 8   - Unused
  39.                   Bit 9,10,11 - Number of RS232 Cards attached
  40.                   Bit 12  - Game I/O Attached
  41.                   Bit 13  - Not used
  42.                   Bit 14,15   - Number of printers attached
  43.      &H13      -  Memory Size in K bytes.
  44.      &H15      -  I/O RAM Size in K bytes.
  45.      &H17      -  Keyboard Flag -- the following lists the masks
  46.                   set to describe current keyboard status:
  47.                   Byte 1;
  48.                   &H80 - Insert state active
  49.                   &H40 - Caps Lock State Has been toggled
  50.                   &H20 - Num Lock State has been toggled
  51.                   &H10 - Scroll Lock State has been toggled
  52.                   &H08 - Alternate Shift key depressed
  53.                   &H04 - Control Shift key depressed
  54.                   &H02 - Left Shift key depressed
  55.                   &H01 - Right Shift key depressed
  56.                   Byte 2;
  57.                   &H80 - Insert Key is depressed
  58.                   &H40 - Caps Lock Key is depressed
  59.                   &H20 - Num Lock Key is depressed
  60.                   &H10 - Scroll Lock key is depressed
  61.                   &H08 - Suspend key has been toggled
  62.      &H49      -  Current CRT mode
  63.                   &H00 - 40x25 BW  
  64.                   &H01 - 40x25 Color
  65.                   &H02 - 80x25 BW
  66.                   &H03 - 80x25 Color
  67.                   &H04 - 320x200 Color
  68.                   &H05 - 320x200 BW
  69.                   &H06 - 640x200 BW
  70.                   &H07 - 80x25 B&W Card -- specialized use, used
  71.                          internal to the video routines.
  72.      &H4A      -  Number of CRT columns
  73.      &H50      -  Cursor Position (one of eight)
  74.      &H60      -  Current cursor mode 
  75.      &H6C      -  Low word of Timer count
  76.      &H6E      -  High word of Timer count
  77.      &H71      -  &H07 - Break key depressed
  78.      &HFA6E    -  Beginning of character regen memory
  79.      &HFF53    -  PRTSC routine address
  80.                                                                              
  81.                                                                              
  82.                                                                              
  83.            
  84. 65399 '** DONE - PRESS ENTER TO RETURN TO MENU **
  85.                                                              
  86.